<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<div class="wrap100 top">
    <div class="fl logo">
  		<a href="#">Fuzhou Maxofei Electrical Appliances Co.,Ltd</a></div>
	<div class="fl menu">
    	<ul id="nav">
    	
        	<li class="btn1"><a href="<%=basePath%>trade/productManage" class="current">产品管理</a></li>
            <li class="btn2"><a href="<%=basePath%>trade/supplierManage">供应商管理</a></li>
            <li class="btn3"><a href="<%=basePath%>trade/quotationManage">报价单管理</a></li>
            <li class="btn4"><a href="<%=basePath%>trade/orderManage">订单管理</a></li>            
            <li class="btn5"><a href="<%=basePath%>trade/sendList">样品管理</a></li>
            <li class="btn6"><a href="<%=basePath%>trade/addressBookList">通信录</a></li>
            <c:if test="${sessionScope.memberSessionInfo.userType.value eq '0'}">
            <li class="btn7"><a href="<%=basePath%>trade/codeList">系统设置</a></li>
            </c:if>
            <li class="btn8"><a href="<%=basePath%>trade/logout">退 出</a></li>
        </ul>
    </div>
    <div class="fr welcome">欢迎您:${sessionScope.memberSessionInfo.account}  角色:${sessionScope.memberSessionInfo.userType.text} </div>
</div>
<script type="text/javascript">
// class="current"
var navrefs= document.getElementById('nav').getElementsByTagName('a');
var find_out=false;
for (var i=0, len = navrefs.length;i<len;i++){	
	if (location.href.indexOf(navrefs[i].href)>-1 && find_out==false){			
	     navrefs[i].className = 'current';
	     find_out=true;	
	}else{
	     navrefs[i].className = ''; 
	}
}
if(find_out==false){
	if(location.href.indexOf("/receiveList")>-1){
		navrefs[4].className = 'current';
	}else if(location.href.indexOf("/deptList")>-1 || location.href.indexOf("/userList")>-1 
			||location.href.indexOf("/roleList")>-1||location.href.indexOf("/company")>-1){
		navrefs[6].className = 'current';
	}else{
		navrefs[0].className = 'current';
	}
}
</script>